package logic

import (
	"context"
	"fmt"
	"net/http"

	"C/Api/internal/svc"
	"C/Api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type SearLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewSearLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SearLogic {
	return &SearLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *SearLogic) Sear(r *http.Request) (resp *types.Response, err error) {
	// todo: add your logic here and delete this line
	fmt.Println("支付宝回调接受成功")
	fmt.Println(r)
	return
}
